package com.general.app.answer.service;

import com.general.app.answer.dao.entity.Answer;
import com.general.common.service.BaseService;

public interface IAnswerService extends BaseService<Answer>{

	
	/**
	 * 保存文本题答案
	 * @param id
	 * @param qId
	 * @param answer
	 * @return
	 */
	public boolean saveTextAnswer(String id,String relation, String qId,String answer);
	
	
	
	/**
	 * 保存单选题
	 * @param id
	 * @param relation
	 * @param qId
	 * @param oId
	 * @param score
	 * @return
	 */
	public boolean saveSingleQuestion(String id,String relation,String qId,String oId,String score);
	
	
	
	/**
	 * 删除复选题答案
	 * @param id
	 * @param relation
	 * @param qId
	 * @param oId
	 * @return
	 */
	public boolean delMultipleAnswer(String id,String relation,String qId,String oId);
	
	
	
	/**
	 * 保存复选题答案
	 * @param id
	 * @param relation
	 * @param qId
	 * @param oId
	 * @param score
	 * @return
	 */
	public boolean saveMultipleAnswer(String id,String relation,String qId,String oId,String score);
}
